package com.anyou.mall.order.orderGoods.mapper;

import java.util.List;

import com.anyou.mall.goo.specs.domain.SpeSpecsValue;
import com.anyou.mall.order.orderGoods.domain.OrdOrderGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 订单商品Mapper接口
 *
 * @author xq
 * @date 2022-03-28
 */
public interface OrdOrderGoodsMapper  extends BaseMapper<OrdOrderGoods>
{
    /**
     * 查询订单商品
     *
     * @param orderGoodsId 订单商品主键
     * @return 订单商品
     */
    public OrdOrderGoods selectOrdOrderGoodsByOrderGoodsId(Long orderGoodsId);

    /**
     * 查询订单商品列表
     *
     * @param ordOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<OrdOrderGoods> selectOrdOrderGoodsList(OrdOrderGoods ordOrderGoods);

    /**
     * 新增订单商品
     *
     * @param ordOrderGoods 订单商品
     * @return 结果
     */
    public int insertOrdOrderGoods(OrdOrderGoods ordOrderGoods);

    /**
     * 修改订单商品
     *
     * @param ordOrderGoods 订单商品
     * @return 结果
     */
    public int updateOrdOrderGoods(OrdOrderGoods ordOrderGoods);

    /**
     * 删除订单商品
     *
     * @param orderGoodsId 订单商品主键
     * @return 结果
     */
    public int deleteOrdOrderGoodsByOrderGoodsId(String orderGoodsId);

    /**
     * 批量删除订单商品
     *
     * @param orderGoodsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrdOrderGoodsByOrderGoodsIds(Long[] orderGoodsIds);
}
